﻿<UserControl x:Class="OctopusGUI.UserControls.ValueTextBox"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OctopusGUI.UserControls"
             mc:Ignorable="d"
             x:Name="valueTextBoxControl">
    <UserControl.Resources>
        <local:ValueBackGroundConverter x:Key="ValueBackGroundConverter" />
    </UserControl.Resources>
    <Grid>
        <StackPanel Orientation="Vertical">
            <TextBox Name="txtValue" Text="{Binding ElementName=valueTextBoxControl,Path=ValueText, UpdateSourceTrigger=LostFocus, Mode=TwoWay}" 
                     TextWrapping="Wrap" AcceptsReturn="True" Margin="1" 
                     MouseDoubleClick="txtValue_MouseDoubleClick">
            </TextBox>
            <ComboBox Name="cmbParameters" Height="20"  Visibility="Collapsed" SelectionChanged="cmbParameters_SelectionChanged"></ComboBox>
        </StackPanel>
    </Grid>
</UserControl>
